package net.minecraft.client.resources;

import java.util.Map;

public class I18n {
    private static Locale i18nLocale;

    static void setLocale() {
        i18nLocale = LanguageManager.currentLocale;
    }

    /**
     * format(a, b) is equivalent to String.format(translate(a), b). Args: translationKey, params...
     */
    public static String format(String p_135052_0_, Object... p_135052_1_) {
        return i18nLocale.formatMessage(p_135052_0_, p_135052_1_);
    }

    public static Map getLocaleProperties() {
        return i18nLocale.field_135032_a;
    }
}
